/*
 * @Author: 李学 2486122195@qq.com
 * @Date: 2024-12-23 08:56:31
 * @LastEditors: 李学 2486122195@qq.com
 * @LastEditTime: 2025-01-02 11:38:37
 * @FilePath: \ruoyi-ui\src\api\camp\service.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'


// 查询用户发送消息表列表
export function getBySenderIdAndByReceiverId(query) {
    return request({
        url: '/camp/service/getBySenderIdAndByReceiverId/' + query,
        method: 'get',

    })
}



// 查询用户发送消息表列表
export function userSenderList(query) {
    return request({
        url: '/camp/service/userSender/list',
        method: 'get',
        params: query
    })
}


// 查询在线客服消息表列表
export function listService(query) {
    return request({
        url: '/camp/service/list',
        method: 'get',
        params: query
    })
}

// 查询在线客服消息表详细
export function getService(messageId) {
    return request({
        url: '/camp/service/' + messageId,
        method: 'get'
    })
}

// 新增在线客服消息表
export function addService(data) {
    return request({
        url: '/camp/service',
        method: 'post',
        data: data
    })
}

// 修改在线客服消息表
export function updateService(data) {
    return request({
        url: '/camp/service',
        method: 'put',
        data: data
    })
}

// 删除在线客服消息表
export function delService(messageId) {
    return request({
        url: '/camp/service/' + messageId,
        method: 'delete'
    })
}